package com.users.rn.rncommon.util;

import android.util.Log;

/**
 * @Description:
 * @Author: bluce
 * @Date: 2020/12/3 11:03
 */
public final class RNLogger {
    private static final String TAG = RNLogger.class.getSimpleName();

    public static void e(String content) {
        if (DevicesUtils.isEnvironment()) {
            e(TAG, content);
        }
    }

    public static void e(String tag, String content) {
        if (DevicesUtils.isEnvironment()) {
            Log.e(tag, content);
        }
    }

    public static void w(String content) {
        if (DevicesUtils.isEnvironment()) {
            Log.w(TAG, content);
        }
    }

    public static void i(String content) {
        if (DevicesUtils.isEnvironment()) {
            Log.i(TAG, content);
        }
    }

    public static void d(String content) {
        if (DevicesUtils.isEnvironment()) {
            d(TAG, content);
        }
    }

    public static void d(String tag, String content) {
        if (DevicesUtils.isEnvironment()) {
            Log.d(tag, content);
        }
    }
}
